"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["packages_diffs_diff-parts_ts"],{13083:(e,i,t)=>{function l(e){return`line-${e}`}function n(e,i,t){return`${e}${"left"===i?"L":"R"}${t}`}function r(e){return"DELETION"===e?"left":"right"}function a(e,i=!1,t=!1){if(t)return"var(--bgColor-attention-muted, var(--color-attention-subtle))";switch(e){case"ADDITION":return i?"var(--diffBlob-additionNum-bgColor, var(--diffBlob-addition-bgColor-num))":"var(--diffBlob-additionLine-bgColor, var(--diffBlob-addition-bgColor-line))";case"DELETION":return i?"var(--diffBlob-deletionNum-bgColor, var(--diffBlob-deletion-bgColor-num))":"var(--diffBlob-deletionLine-bgColor, var(--diffBlob-deletion-bgColor-line))";case"HUNK":return i?"var(--diffBlob-hunkNum-bgColor, var(--diffBlob-hunk-bgColor-num))":"var(--diffBlob-hunkLine-bgColor, var(--bgColor-accent-muted))";case"EMPTY":return i?"var(--diffBlob-emptyNum-bgColor, var(--diffBlob-hunk-bgColor-num))":"var(--diffBlob-emptyLine-bgColor, var(--bgColor-accent-muted))";default:return}}function d(e){let i=0;if(e)for(let t of e)i=Math.max(i,t?.left??0,t?.right??0);return Math.max(8*i.toString().length+20,40).toString()}t.d(i,{IQ:()=>n,Sq:()=>l,XU:()=>r,c7:()=>d,gK:()=>a})},19976:(e,i,t)=>{t.d(i,{Jg:()=>c,nq:()=>h,uP:()=>u.u,$e:()=>p,P3:()=>x,wj:()=>g,l4:()=>C,Qe:()=>b,Ah:()=>L});var l=t(74848),n=t(21728),r=t(34164),a=t(73017),d=t(13083);let s=e=>{let i,t,s,o,c,f,h,u,m,x,y=(0,n.c)(34),{dragging:p,isHighlighted:g,isLeftColumn:b,colSpan:j,line:N,lineAnchor:D}=e,_=N.html,C="";if(["ADDITION","DELETION"].includes(N.type)&&["+","-"].includes(_[0])){let e;C=_[0],y[0]!==_?(e=_.slice(1),y[0]=_,y[1]=e):e=y[1],_=e}let T=p&&g,L=b&&"HUNK"!==N.type;y[2]!==T||y[3]!==L?(i=(0,r.$)("diff-text-cell",{"border-left color-border-accent-emphasis":T,"border-right":L}),y[2]=T,y[3]=L,y[4]=i):i=y[4],y[5]!==D?(t=D?(0,d.Sq)(D):void 0,y[5]=D,y[6]=t):t=y[6],y[7]!==g||y[8]!==N.type?(s=(0,d.gK)(N.type,!1,g),y[7]=g,y[8]=N.type,y[9]=s):s=y[9],y[10]!==s?(o={backgroundColor:s},y[10]=s,y[11]=o):o=y[11];let v=C,S="ADDITION"===N.type,I="DELETION"===N.type;y[12]!==S||y[13]!==I?(c=(0,r.$)("diff-text syntax-highlighted-line",{addition:S,deletion:I}),y[12]=S,y[13]=I,y[14]=c):c=y[14];let k=e.lineChild,$="HUNK"===N.type;y[15]!==$?(f=(0,r.$)("diff-text-inner",{"color-fg-muted":$}),y[15]=$,y[16]=f):f=y[16];let E="CONTEXT"===N.type?"-7px":void 0;return y[17]!==E?(h={marginLeft:E},y[17]=E,y[18]=h):h=y[18],y[19]!==_||y[20]!==f||y[21]!==h?(u=(0,l.jsx)(a.$6,{className:f,html:_,style:h}),y[19]=_,y[20]=f,y[21]=h,y[22]=u):u=y[22],y[23]!==C||y[24]!==e.lineChild||y[25]!==u||y[26]!==c?(m=(0,l.jsxs)("code",{"data-code-marker":v,className:c,children:[k,u]}),y[23]=C,y[24]=e.lineChild,y[25]=u,y[26]=c,y[27]=m):m=y[27],y[28]!==j||y[29]!==m||y[30]!==i||y[31]!==t||y[32]!==o?(x=(0,l.jsx)("td",{className:i,colSpan:j,id:t,style:o,children:m}),y[28]=j,y[29]=m,y[30]=i,y[31]=t,y[32]=o,y[33]=x):x=y[33],x};try{s.displayName||(s.displayName="DiffText")}catch{}let o=e=>{let i,t,a,s,o,c,f,h,u,m,x,y,p,g=(0,n.c)(30);g[0]!==e?({ariaLabel:i,children:t,hasExpanderButton:s,lineType:f,colSpan:a,interactiveProps:o,isHighlighted:c,...h}=e,g[0]=e,g[1]=i,g[2]=t,g[3]=a,g[4]=s,g[5]=o,g[6]=c,g[7]=f,g[8]=h):(i=g[1],t=g[2],a=g[3],s=g[4],o=g[5],c=g[6],f=g[7],h=g[8]),g[9]!==t?(u=(0,l.jsx)("code",{className:"pr-2",children:t}),g[9]=t,g[10]=u):u=g[10];let b=u;if(o){let e;g[11]!==i||g[12]!==o||g[13]!==b?(e=(0,l.jsx)("button",{className:"diff-line-number-button",...o,"aria-label":i,children:b}),g[11]=i,g[12]=o,g[13]=b,g[14]=e):e=g[14],b=e}let j=o?void 0:i,N=!!o;g[15]!==s||g[16]!==N?(m=(0,r.$)("diff-line-number",{"has-expander":s,clickable:N}),g[15]=s,g[16]=N,g[17]=m):m=g[17];let D=a||1;return g[18]!==c||g[19]!==f?(x=(0,d.gK)(f,!0,c),g[18]=c,g[19]=f,g[20]=x):x=g[20],g[21]!==x?(y={backgroundColor:x},g[21]=x,g[22]=y):y=g[22],g[23]!==h||g[24]!==j||g[25]!==m||g[26]!==D||g[27]!==y||g[28]!==b?(p=(0,l.jsx)("td",{"aria-label":j,"data-line-number":!0,className:m,colSpan:D,style:y,...h,children:b}),g[23]=h,g[24]=j,g[25]=m,g[26]=D,g[27]=y,g[28]=b,g[29]=p):p=g[29],p};try{o.displayName||(o.displayName="LineNumber")}catch{}let c=e=>{let i,t,r,a,d=(0,n.c)(28),{dragging:c,isHighlighted:f,isLeftColumn:h,isSplit:u,lineAnchor:m,line:x,lineChild:y,onLineNumberClick:p}=e,g="CONTEXT"===x.type||"INJECTED_CONTEXT"===x.type,b="ADDITION"!==x.type,j=b||!u,N="DELETION"!==x.type,D=N&&!g||!u,_=u&&g?h?x.left:x.right:x.left;return d[0]!==_||d[1]!==f||d[2]!==x.left||d[3]!==x.right||d[4]!==x.type||d[5]!==p||d[6]!==b||d[7]!==j?(i=j&&(0,l.jsx)(o,{ariaLabel:`Line ${b?x.left?.toString():x.right?.toString()}`,lineType:x.type,interactiveProps:p?{onClick:p}:null,isHighlighted:f,children:b&&_}),d[0]=_,d[1]=f,d[2]=x.left,d[3]=x.right,d[4]=x.type,d[5]=p,d[6]=b,d[7]=j,d[8]=i):i=d[8],d[9]!==f||d[10]!==x.left||d[11]!==x.right||d[12]!==x.type||d[13]!==p||d[14]!==N||d[15]!==D?(t=D&&(0,l.jsx)(o,{ariaLabel:`Line ${N?x.right?.toString():x.left?.toString()}`,lineType:x.type,interactiveProps:p?{onClick:p}:null,isHighlighted:f,children:N&&x.right}),d[9]=f,d[10]=x.left,d[11]=x.right,d[12]=x.type,d[13]=p,d[14]=N,d[15]=D,d[16]=t):t=d[16],d[17]!==c||d[18]!==f||d[19]!==h||d[20]!==x||d[21]!==m||d[22]!==y?(r=(0,l.jsx)(s,{dragging:c,isHighlighted:f,isLeftColumn:h,line:x,lineAnchor:m,lineChild:y}),d[17]=c,d[18]=f,d[19]=h,d[20]=x,d[21]=m,d[22]=y,d[23]=r):r=d[23],d[24]!==i||d[25]!==t||d[26]!==r?(a=(0,l.jsxs)(l.Fragment,{children:[i,t,r]}),d[24]=i,d[25]=t,d[26]=r,d[27]=a):a=d[27],a};try{c.displayName||(c.displayName="DiffLinePart")}catch{}let f={DiffPlaceholderSVG:"DiffPlaceholder-module__DiffPlaceholderSVG--zRrf1"};function h(){let e,i,t=(0,n.c)(2);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsxs)("clipPath",{id:"diff-placeholder",children:[(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"67.0175439",x:"0",y:"0"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"100.701754",x:"18.9473684",y:"47.7194983"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"37.8947368",x:"0",y:"71.930126"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"53.3333333",x:"127.017544",y:"48.0703769"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"72.9824561",x:"187.719298",y:"48.0703769"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"140.350877",x:"76.8421053",y:"0"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"140.350877",x:"17.8947368",y:"23.8597491"}),(0,l.jsx)("rect",{height:"11.9298746",rx:"2",width:"173.684211",x:"166.315789",y:"23.8597491"})]}),t[0]=e):e=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("svg",{"aria-hidden":"true",version:"1.1",viewBox:"0 0 340 84",xmlns:"http://www.w3.org/2000/svg",className:f.DiffPlaceholderSVG,children:(0,l.jsxs)("defs",{children:[e,(0,l.jsxs)("linearGradient",{id:"animated-diff-gradient",spreadMethod:"reflect",x1:"0",x2:"0",y1:"0",y2:"1",children:[(0,l.jsx)("stop",{offset:"0",stopColor:"#eee"}),(0,l.jsx)("stop",{offset:"0.2",stopColor:"#eee"}),(0,l.jsx)("stop",{offset:"0.5",stopColor:"#ddd"}),(0,l.jsx)("stop",{offset:"0.8",stopColor:"#eee"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#eee"}),(0,l.jsx)("animateTransform",{attributeName:"y1",dur:"1s",repeatCount:"3",values:"0%; 100%; 0"}),(0,l.jsx)("animateTransform",{attributeName:"y2",dur:"1s",repeatCount:"3",values:"100%; 200%; 0"})]})]})}),t[1]=i):i=t[1],i}try{h.displayName||(h.displayName="DiffPlaceholder")}catch{}var u=t(88098);t(91618);var m=t(38621);function x(e){let i,t,r,a=(0,n.c)(10),{currentLine:d,hunkButton:c,isLeftColumn:f,isSplit:h}=e;if(h&&!f)return null;a[0]!==d.type||a[1]!==c||a[2]!==h?(i=c?(0,l.jsx)(o,{colSpan:h?1:2,hasExpanderButton:!0,lineType:d.type,children:c}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{lineType:d.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),!h&&(0,l.jsx)(o,{lineType:d.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})})]}),a[0]=d.type,a[1]=c,a[2]=h,a[3]=i):i=a[3];let u=h?3:void 0;return a[4]!==d||a[5]!==u?(t=(0,l.jsx)(s,{isHighlighted:!1,isLeftColumn:!0,colSpan:u,line:d}),a[4]=d,a[5]=u,a[6]=t):t=a[6],a[7]!==i||a[8]!==t?(r=(0,l.jsxs)(l.Fragment,{children:[i,t]}),a[7]=i,a[8]=t,a[9]=r):r=a[9],r}try{x.displayName||(x.displayName="HunkHeaderDiffLine")}catch{}function y(){let e,i=(0,n.c)(1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"hunk-kebab-icon pr-2 pb-1",children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),i[0]=e):e=i[0],e}try{y.displayName||(y.displayName="HunkKebabIcon")}catch{}function p(e){let i,t,a,d=(0,n.c)(5),{isLeftColumn:s}=e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(o,{lineType:"EMPTY"}),d[0]=i):i=d[0],d[1]!==s?(t=(0,r.$)("empty-diff-line",{"border-right":s}),d[1]=s,d[2]=t):t=d[2],d[3]!==t?(a=(0,l.jsxs)(l.Fragment,{children:[i,(0,l.jsx)("td",{className:t,colSpan:1})]}),d[3]=t,d[4]=a):a=d[4],a}try{p.displayName||(p.displayName="EmptyDiffLine")}catch{}function g(e){let i,t,r,a,d,s,o,c,f=(0,n.c)(15);return f[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("thead",{className:"sr-only",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col",children:"Original file line number"}),(0,l.jsx)("th",{scope:"col",children:"Original file line"}),(0,l.jsx)("th",{scope:"col",children:"Diff line number"}),(0,l.jsx)("th",{scope:"col",children:"Diff line change"})]})}),f[0]=i):i=f[0],f[1]!==e.lineWidth?(t=(0,l.jsx)("col",{width:e.lineWidth}),f[1]=e.lineWidth,f[2]=t):t=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)("col",{}),f[3]=r):r=f[3],f[4]!==e.lineWidth?(a=(0,l.jsx)("col",{width:e.lineWidth}),f[4]=e.lineWidth,f[5]=a):a=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsx)("col",{}),f[6]=d):d=f[6],f[7]!==t||f[8]!==a?(s=(0,l.jsxs)("colgroup",{children:[t,r,a,d]}),f[7]=t,f[8]=a,f[9]=s):s=f[9],f[10]!==e.children?(o=(0,l.jsx)("tbody",{children:e.children}),f[10]=e.children,f[11]=o):o=f[11],f[12]!==s||f[13]!==o?(c=(0,l.jsxs)(l.Fragment,{children:[i,s,o]}),f[12]=s,f[13]=o,f[14]=c):c=f[14],c}try{g.displayName||(g.displayName="SplitDiffTable")}catch{}function b(e){let i,t,r,a,d,s,o,c=(0,n.c)(13);return c[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("thead",{className:"sr-only",children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col",children:"Original file line number"}),(0,l.jsx)("th",{scope:"col",children:"Diff line number"}),(0,l.jsx)("th",{scope:"col",children:"Diff line change"})]})}),c[0]=i):i=c[0],c[1]!==e.lineWidth?(t=(0,l.jsx)("col",{width:e.lineWidth}),r=(0,l.jsx)("col",{width:e.lineWidth}),c[1]=e.lineWidth,c[2]=t,c[3]=r):(t=c[2],r=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)("col",{width:"100%"}),c[4]=a):a=c[4],c[5]!==t||c[6]!==r?(d=(0,l.jsxs)("colgroup",{children:[t,r,a]}),c[5]=t,c[6]=r,c[7]=d):d=c[7],c[8]!==e.children?(s=(0,l.jsx)("tbody",{children:e.children}),c[8]=e.children,c[9]=s):s=c[9],c[10]!==d||c[11]!==s?(o=(0,l.jsxs)(l.Fragment,{children:[i,d,s]}),c[10]=d,c[11]=s,c[12]=o):o=c[12],o}try{b.displayName||(b.displayName="UnifiedDiffTable")}catch{}let j={diffTextCell:"UnifiedDiffLines-module__diffTextCell--y7sIw",diffHunkCell:"UnifiedDiffLines-module__diffHunkCell--PwOTu",diffHunkText:"UnifiedDiffLines-module__diffHunkText--nwvt0",diffTextInner:"UnifiedDiffLines-module__diffTextInner--z42oB",diffTextMarker:"UnifiedDiffLines-module__diffTextMarker--XE3qq",syntaxHighlightedAdditionLine:"UnifiedDiffLines-module__syntaxHighlightedAdditionLine--GBB6F",syntaxHighlightedDeletionLine:"UnifiedDiffLines-module__syntaxHighlightedDeletionLine--mmCob",diffLineNumber:"UnifiedDiffLines-module__diffLineNumber--Ls6hS",unifiedDiffLines:"UnifiedDiffLines-module__unifiedDiffLines--UDm5a"};function N(e){let i,t,r,a,s=(0,n.c)(9),{line:o,children:c}=e;return s[0]!==o.type?(i=(0,d.gK)(o.type,!0),s[0]=o.type,s[1]=i):i=s[1],s[2]!==i?(t={backgroundColor:i,textAlign:"center"},s[2]=i,s[3]=t):t=s[3],s[4]!==c?(r=(0,l.jsx)("code",{children:c}),s[4]=c,s[5]=r):r=s[5],s[6]!==t||s[7]!==r?(a=(0,l.jsx)("td",{className:j.diffLineNumber,style:t,children:r}),s[6]=t,s[7]=r,s[8]=a):a=s[8],a}function D(e){let i,t,d,s=(0,n.c)(4),{line:o}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(y,{}),s[0]=i):i=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.$)(j.diffTextInner,"color-fg-muted"),s[1]=t):t=s[1];let c=o.html;return s[2]!==c?(d=(0,l.jsx)("td",{colSpan:4,className:j.diffHunkCell,valign:"top",children:(0,l.jsxs)("div",{className:"d-flex flex-row",children:[i,(0,l.jsx)("code",{className:j.diffHunkText,children:(0,l.jsx)(a.$6,{className:t,html:c})})]})}),s[2]=c,s[3]=d):d=s[3],d}function _(e){let i,t,s,o=(0,n.c)(13),{line:c}=e,f="HUNK"===c.type,h="ADDITION"!==c.type,u="DELETION"!==c.type,m="ADDITION"===c.type?"+":"DELETION"===c.type?"-":void 0,x=!!m;return o[0]!==f||o[1]!==c?(i=f&&(0,l.jsx)(D,{line:c}),o[0]=f,o[1]=c,o[2]=i):i=o[2],o[3]!==f||o[4]!==c||o[5]!==m||o[6]!==h||o[7]!==x||o[8]!==u?(t=!f&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N,{line:c,children:h&&c.left}),(0,l.jsx)(N,{line:c,children:u&&c.right}),(0,l.jsx)("td",{className:j.diffTextCell,style:{backgroundColor:(0,d.gK)(c.type,!1)},children:(0,l.jsxs)("code",{className:(0,r.$)("ADDITION"===c.type&&j.syntaxHighlightedAdditionLine,"DELETION"===c.type&&j.syntaxHighlightedDeletionLine),children:[x&&(0,l.jsx)("span",{className:j.diffTextMarker,children:m}),(0,l.jsx)(a.$6,{className:j.diffTextInner,html:c.html,style:{backgroundColor:(0,d.gK)(c.type,!1)}})]})})]}),o[3]=f,o[4]=c,o[5]=m,o[6]=h,o[7]=x,o[8]=u,o[9]=t):t=o[9],o[10]!==i||o[11]!==t?(s=(0,l.jsxs)("tr",{children:[i,t]}),o[10]=i,o[11]=t,o[12]=s):s=o[12],s}function C(e){let i,t,a,d,s=(0,n.c)(14),{className:o,lines:c,lineWidth:f,tabSize:h}=e;if(s[0]!==c||s[1]!==h){let e;s[3]!==h?(e=(e,i)=>(0,l.jsx)(_,{line:e,tabSize:h},i),s[3]=h,s[4]=e):e=s[4],i=c.map(e),s[0]=c,s[1]=h,s[2]=i}else i=s[2];let u=i;return s[5]!==o?(t=(0,r.$)(j.unifiedDiffLines,o,"tab-size"),s[5]=o,s[6]=t):t=s[6],s[7]!==u||s[8]!==f?(a=(0,l.jsx)(b,{lineWidth:f,children:u}),s[7]=u,s[8]=f,s[9]=a):a=s[9],s[10]!==t||s[11]!==a||s[12]!==h?(d=(0,l.jsx)("table",{className:t,"data-tab-size":h,children:a}),s[10]=t,s[11]=a,s[12]=h,s[13]=d):d=s[13],d}try{N.displayName||(N.displayName="LineNumberCell")}catch{}try{D.displayName||(D.displayName="HunkCell")}catch{}try{_.displayName||(_.displayName="UnifiedDiffRow")}catch{}try{C.displayName||(C.displayName="UnifiedDiffLines")}catch{}function T(e){return"LEFT"===e?"-":"RIGHT"===e?"+":""}function L({startDiffSide:e,endDiffSide:i,originalStartLine:t,originalEndLine:l}){return e&&i&&"number"==typeof t&&"number"==typeof l?0===t&&1===l&&e===i?"-1 to +1":e===i&&t===l?`${T(e)}${t}`:`${T(e)}${t} to ${T(i)}${l}`:""}},88098:(e,i,t)=>{t.d(i,{u:()=>d});var l=t(74848),n=t(21728),r=t(34164);let a={diffSquare:"DiffSquares-module__diffSquare--KZMTU",addition:"DiffSquares-module__addition--kxGde",deletion:"DiffSquares-module__deletion--vyEtU",neutral:"DiffSquares-module__neutral--_tGgY"};function d(e){let i,t,r=(0,n.c)(4),{squares:a}=e;return r[0]!==a?(i=a.map(s),r[0]=a,r[1]=i):i=r[1],r[2]!==i?(t=(0,l.jsx)("div",{className:"d-flex",children:i}),r[2]=i,r[3]=t):t=r[3],t}function s(e,i){return(0,l.jsx)("div",{"data-testid":`${e} diffstat`,className:(0,r.$)(a.diffSquare,a[e])},i)}try{d.displayName||(d.displayName="DiffSquares")}catch{}},91618:(e,i,t)=>{t.d(i,{z:()=>d});var l=t(74848),n=t(21728),r=t(88098);let a={addition:"addition",deletion:"deletion",neutral:"neutral"};function d(e){let i,t,d,s,o,c,f,h=(0,n.c)(20),{linesAdded:u,linesDeleted:m,linesChanged:x}=e,y=void 0===u?0:u,p=void 0===m?0:m,g=void 0===x?0:x;if(!y&&!p&&!g||0===g)return null;if(h[0]!==y||h[1]!==g||h[2]!==p){let{greenSquares:e,redSquares:t,graySquares:l}=function(e,i,t){let l=t>5?5/t:1,n=Math.floor(e*l),r=Math.floor(i*l);return{greenSquares:n,redSquares:r,graySquares:5-n-r}}(y,p,g);i=[...Array(e).fill(a.addition),...Array(t).fill(a.deletion),...Array(l).fill(a.neutral)],h[0]=y,h[1]=g,h[2]=p,h[3]=i}else i=h[3];let b=i;return h[4]!==y?(t=y>0&&(0,l.jsxs)("span",{"aria-hidden":"true",className:"f6 text-bold fgColor-success",children:["+",y.toLocaleString()]}),h[4]=y,h[5]=t):t=h[5],h[6]!==p?(d=p>0&&(0,l.jsxs)("span",{"aria-hidden":"true",className:"f6 text-bold fgColor-danger",children:["-",p.toLocaleString()]}),h[6]=p,h[7]=d):d=h[7],h[8]!==y||h[9]!==p?(s=function({linesAdded:e,linesDeleted:i}){let t="Lines changed: ";return t+`${e} ${1===e?"addition":"additions"} & ${i} ${1===i?"deletion":"deletions"}`}({linesAdded:y,linesDeleted:p}),h[8]=y,h[9]=p,h[10]=s):s=h[10],h[11]!==s?(o=(0,l.jsx)("span",{className:"sr-only",children:s}),h[11]=s,h[12]=o):o=h[12],h[13]!==b?(c=(0,l.jsx)(r.u,{squares:b}),h[13]=b,h[14]=c):c=h[14],h[15]!==t||h[16]!==d||h[17]!==o||h[18]!==c?(f=(0,l.jsxs)("div",{className:"d-flex flex-items-center gap-1 pl-1",children:[t,d,o,c]}),h[15]=t,h[16]=d,h[17]=o,h[18]=c,h[19]=f):f=h[19],f}try{d.displayName||(d.displayName="DiffStats")}catch{}}}]); //# sourceMappingURL=packages_diffs_diff-parts_ts-8e2812a79b39.js.map